<ul class="nav nav-pills">
  <li <% if @active_tab == 'truck_details' %>class="active"<% end %> >
    <a href="<%=truck_path(@truck)%>">Truck details</a>
  </li>
  <li <% if @active_tab == 'truck_attributes' %>class="active"<% end %> >
    <a href="<%= attributes_truck_path(@truck) %>">Properties</a>
  </li>
  <li <% if @active_tab == 'truck_conditions' %>class="active"<% end %> >
    <a href="<%= conditions_truck_path(@truck) %>">Condition</a>
  </li>
  <li <% if @active_tab == 'truck_ownerships' %>class="active"<% end %> >
    <a href="<%= ownerships_truck_path(@truck) %>">Ownership</a>
  </li>
  <li <% if @active_tab == 'truck_rates' %>class="active"<% end %> >
    <a href="<%= rates_truck_path(@truck) %>">Rates</a>
  </li>
</ul>
